#pragma once


class CCodeViewManager;

class CCodeView :
	public CMDIChildWnd
{
	DECLARE_MESSAGE_MAP()

private:
	CCodeViewManager &m_rManager;

	CMenu m_Menu;
	CEdit m_ctrlEdit;
	CFont m_Font;

public:
	CCodeView(CCodeViewManager &a_rManager);

	BOOL Create(const CStringA &strCode);
	VOID SetCode(const CStringA *pCode);

	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSetFocus(CWnd *pOldWnd);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnClose();

	afx_msg void OnEditUndo();
	afx_msg void OnUpdateEditUndo(CCmdUI *pCmdUI);

	afx_msg void OnEditCut();
	afx_msg void OnEditCopy();
	afx_msg void OnEditPaste();

};
